package com.lipaluma.examples.annotation.onetomany;

import java.util.List;

import com.lipaluma.annotations.mapping.MapColumn;
import com.lipaluma.annotations.merge.Id;
import com.lipaluma.annotations.merge.OneToMany;

public class Order {
	
	@Id
	@MapColumn(columnName="ORDER_ID")
	private Long id;

	@MapColumn(columnName="ORDER_CREATED_BY")
	private String createdBy;
	
	@OneToMany
	private List<LineOrder> lineOrders;
	
//	@MapColumn(with=CalculOrderAmountFieldMapper.class)
//	private double orderAmount;
	
	public Long getId() {
		return id;
	}
	public String getCreatedBy() {
		return createdBy;
	}
	public List<LineOrder> getLineOrders() {
		return lineOrders;
	}
}
